package com.jackstraw.jack_base.job.xxljob.handler;

import com.jackstraw.jack_base.job.xxljob.aspect.annotation.XxlJobHandler;
import com.jackstraw.jack_base.job.xxljob.bean.AbstractXxlJobHandler;
import com.jackstraw.jack_base.util.tenant.contextholder.TenantContextHolder;
import lombok.extern.slf4j.Slf4j;


@Slf4j
@XxlJobHandler(jobHandlerName = "demo")
public class DemoHandler extends AbstractXxlJobHandler<String> {
    @Override
    protected void commonExecute(String param) {
        log.info("租户名称为：{}", TenantContextHolder.get());
        log.info("获取到的参数为：{}", param);
    }
}
